<?php
return array(
	//MySQL 配置项
	'DB_TYPE'      =>  'mysql',     // 数据库类型
	'DB_HOST'      =>  'xwkang.com',     // 服务器地址
	'DB_NAME'      =>  'xwk',     // 数据库名
	'DB_USER'      =>  'root',     // 用户名
	'DB_PWD'       =>  'Xiweikang',     // 密码
	'DB_PORT'      =>  '3306',     // 端口
	'DB_PREFIX'    =>  'c_',     // 数据库表前缀
	'DB_CHARSET'   =>  'utf8', // 数据库的编码 默认为utf8
    'DB_PARAMS'    =>   array(\PDO::MYSQL_ATTR_USE_BUFFERED_QUERY => true),

	/*
	//RedisDB 配置项
	'REDIS_HOST'	=>	'123.56.78.190',
	'REDIS_PORT'	=>	'6379',
	'REDIS_AUTH'	=>	'',

	//Redis Session 配置项
	'SESSION_AUTO_START'	=>  true,	// 是否自动开启Session
	'SESSION_TYPE'			=>  'Redis',	//session类型
	'SESSION_PERSISTENT'    =>  1,		//是否长连接(对于php来说0和1都一样)
	'SESSION_CACHE_TIME'	=>  1,		//连接超时时间(秒)
	'SESSION_EXPIRE'		=>  0,		//session有效期(单位:秒) 0表示永久缓存
	'SESSION_PREFIX'		=>  '',		//session前缀
	'SESSION_REDIS_HOST'	=>  '123.56.78.190', //分布式Redis,默认第一个为主服务器
	'SESSION_REDIS_PORT'	=>  '6379',	       //端口,如果相同只填一个,用英文逗号分隔
	'SESSION_REDIS_AUTH'    =>  '',    //Redis auth认证(密钥中不能有逗号),如果相同只填一个,用英文逗号分隔

	//Redis Cache 配置项
	'DATA_CACHE_TIME'       =>  3600,           //长连接时间,REDIS_PERSISTENT为1时有效
	'DATA_CACHE_PREFIX'     =>  '',            //缓存前缀
	'DATA_CACHE_TYPE'       =>  'Redis',       //数据缓存类型
	'DATA_EXPIRE'           =>  0,	           //数据缓存有效期(单位:秒) 0表示永久缓存
	'DATA_PERSISTENT'      	=>  1,		       //是否长连接
	'DATA_REDIS_HOST'		=>  '123.56.78.190', //分布式Redis,默认第一个为主服务器
	'DATA_REDIS_PORT'		=>  '6379',	       //端口,如果相同只填一个,用英文逗号分隔
	'DATA_REDIS_AUTH'       =>  '',     //Redis auth认证(密钥中不能有逗号),如果相同只填一个,用英文逗号分隔
	*/
	'DEFAULT_MODULE' => 'Wechat', // 默认模块
	'URL_CASE_INSENSITIVE' =>true,	//不区分大小写

	'DB_SQL_BUILD_CACHE' => true,
	//'DB_SQL_BUILD_QUEUE' => '',
	'DB_SQL_BUILD_LENGTH' => 20000, // SQL缓存的队列长度
	
	//'DEFAULT_THEME' => 'luoe',
	'VIEW_PATH'=>'./Template/',
	'URL_MODEL' => '2',
	 'URL_HTML_SUFFIX' =>  '',  // URL伪静态后缀设置
	//'URL_PATHINFO_DEPR'=>'-',
	
	'TMPL_PARSE_STRING'  =>array(
		//'__PUBLIC__' => '/Common', // 更改默认的/Public 替换规则
		'__UPLOAD__' => '/Uploads', // 增加新的上传路径替换规则
		'__JS__'     => '/Template/js', // 增加新的JS类库路径替换规则
		'__IMG__'	=> '/Template/images',
		'__CSS__'	=> '/Template/css',
		'__Temp__' => '/Template',
	),
	
	'examine' => 1,	//是否需要审核 0为需要 1为不需要

	//图片的最大宽度高度
	'ImgWidth' => 1024,
	'ImgHeight' => 1024,

	'mms' => 1, 	//0为微信，1为短信验证码

    'mmskey' => '12c6a566bc4665282f5dccecafe8faff',

    //阿里云OSS配置
    'OSS_ACCESS_KEY_ID' => 'LTAIj2YzhMo8a6VH',
    'OSS_ACCESS_KEY_SECRET' => 'RDtldD5eeMbzRRhyOei5q5V5pdAjZR',
    'OSS_ENDPOINT' => 'oss-cn-qingdao.aliyuncs.com',
    'OSS_ENDPOINT_CNAME' => 'resource.xwkang.com',
    'OSS_BUCKET_NAME' => 'xwk-file',

    //阿里云OSS图片处理
    'OSS_IMAGE_ENDPOINT' => 'image.xwkang.com',

	/************************************************希卫康***********************************************/

    //微信配置
    'appid'=>'wxa3cf70c1a9d440c8',										//填写高级调用功能的appid
    'appsecret' => 'a576f9eea7715484cf0164368e7b481b',					//AppSecret(应用密钥)
    'token'=>'xwk',												//填写应用接口的Token
    'encodingaeskey'=>'N8kdpSDplnAuJCyxemjglRgeLtFfFXcO5yAGN9iLYLH',	//填写加密用的EncodingAESKey
    'account'=>'xwkbrace@xwkang.com',										//公众号用户名
    'password'=>'Fa19650808',
    'mch_id' => '1486870452',
    'mch_key' => 'xiweikangxiweikang12341234123412',

    'oauthServerUrl' => 'http://xwkang.com/Wechat/Api/auth3/',

    //OSS配置
    'BUCKET_NAME' => 'xwk-file',

    //默认分页大小
    'DEFAULT_PAGE_SIZE' => 20,

    //默认费率
    'DEFAULT_REWARD_FEE' => 0.95,

    //默认域名
    'ROOT_URL' => 'http://xwkang.com',

    //默认是否枚举
    'DEFAULT_YN' =>array('YES' => 1, 'NO' => -1,
		'YES_STRING' => '是', 'NO_STRING' => '否'),

    //SWOOLE异步任务类型
    'SWOOLE_TASK_TYPE' => array(
        'GENERATE_ORDER' => 1,
        'DRAW_PRIZE' => 2,
        'PUSH_NOTIFICATION' => 3,
        'PUSH_WIN_GROUP_WECHAT' => 4,

        'GENERATE_ORDER_STRING' => '生成订单',
        'DRAW_PRIZE_STRING' => '开奖',
        'PUSH_NOTIFICATION_STRING' => '推送',
        'PUSH_WIN_GROUP_WECHAT_STRING' => '微信推送团胜'
    ),

    'ACTIVITY_STATUS'=>array(

        'WAITING_JOIN'=>-1,
        'FULL'=>1,
        'END'=>2,
        'NEWS'=>3,

        'WAITING_JOIN_STRING'=>'正在报名',
        'FULL_STRING'=>'已报满',
        'END_STRING'=>'已截止',
        'NEWS_STRING'=>'新闻',

    ),

    //WORKORDER-STATUS
    'WORKORDER_STATUS' =>array(
        'CLOSE' => -2,
//        'WAITING_SUBMIT' => -1,
        'WAITING_DISTPATCH' => 1,
        'DISTPATCHED' => 2,
        'PROCESSING' => 3,
        'END' => 4,

        'CLOSE_STRING' => '已关闭',
//        'WAITING_SUBMIT_STRING' => '未提交',
        'WAITING_DISTPATCH_STRING' => '待出处方',
        'DISTPATCHED_STRING' => '已出处方',
        'PROCESSING_STRING' => '制作中',
        'END_STRING' => '已完成'
    ),

    //WORKORDER-TYPE
    'WORKORDER_TYPE' =>array(
        'AFO' => 1,
        'SPN' => 2,
        'CP' => 3,

        'AFO_STRING' => 'AFO',
        'SPN_STRING' => '脊柱',
        'CP_STRING' => '物理检查'
    ),

    //DISEASE-STATUS
    'CATEGORY_ID_STATUS' =>array(
        'ALL' => 0,
        'CATEGORY_1' => 1,
        'CATEGORY_2' => 2,
        'CATEGORY_3' => 3,
        'CATEGORY_4' => 4,
        'CATEGORY_5' => 5,
        'CATEGORY_6' => 6,
        'CATEGORY_7' => 7,
        'CATEGORY_8' => 7,

        'ALL_STRING' => '全部',
        'CATEGORY_1_STRING' => '下肢慢创、水肿、糖尿病足',
        'CATEGORY_2_STRING' => '马蹄内翻足',
        'CATEGORY_3_STRING' => '踝关节防护',
        'CATEGORY_4_STRING' => '脑瘫及儿童运动系统发育疾病',
        'CATEGORY_5_STRING' => '儿童先天髋关节发育不良',
        'CATEGORY_6_STRING' => '踝关节不稳定',
        'CATEGORY_7_STRING' => '脊柱畸形',
        'CATEGORY_8_STRING' => '脑卒中（中风）'
    ),

    //DISEASE-STATUS
    'DISEASE_STATUS' =>array(
        'NO' => 0,
        'DISEASE_1' => 1,
        'DISEASE_2' => 2,

        'NO_STRING' => '无',
        'DISEASE_1_STRING' => '脑瘫',
        'DISEASE_2_STRING' => '脊柱侧弯'
    ),

    //ORDER-STATUS
    'ORDER_STATUS' =>array(
        'WAITING_PAY' => -1,
        'WAITING_HANDLE' => 1,
        'END_DELIVERY' => 2,

        'WAITING_PAY_STRING' => '等待付款',
        'WAITING_HANDLE_STRING' => '已付款',
        'END_DELIVERY_STRING' => '已出库'
    ),

    'FINISHED_ORDER_STATUS' =>array(
        'WAITING_PROCESS' => -1,
        'END_DELIVERY' => 1,

        'WAITING_PROCESS_STRING' => '待处理',
        'END_DELIVERY_STRING' => '已出库'
    ),

    'HOME_TYPE' =>array(
        'ACTIVITY' => 'ACTIVITY',
        'PRODUCT' => 'PRODUCT',
        'SCIENCE' => 'SCIENCE',
        'CASE' => 'CASE',

        'ACTIVITY_STRING' => '活动',
        'PRODUCT_STRING' => '产品',
        'SCIENCE_STRING' => '科普',
        'CASE_STRING' => '病例',
    ),

    'ACTIVITY_TYPE' =>array(
        'OWN' => 1,
        'THIRD_PARTY' => 2,
        'NEWS' => 3,

        'OWN_STRING' => '自营活动',
        'THIRD_PARTY_STRING' => '合作活动',
        'NEWS_STRING' => '新闻',
    ),

    'ACTIVITY_PAY' =>array(
        'NO' => -1,
        'YES' => 1,

        'NO_STRING' => '否',
        'YES_STRING' => '是',
    ),

    'ACTIVITY_JOIN_STATUS' =>array(
        'WAITING_PAY' => -1,
        'END_PAY' => 1,

        'WAITING_PAY_STRING' => '待支付',
        'END_PAY_STRING' => '已支付',
    ),

    //默认是否枚举
    'INVOICE_TYPE' =>array('YES' => 1, 'NO' => -1, 'PERSONAL' => 2,
        'YES_STRING' => '公司', 'NO_STRING' => '否', 'PERSONAL_STRING' => '个人'),

    'BOOKING_STATUS' =>array(
        'WAITING_PAY' => -1,
        'WAITING_SERVICE' => 1,
        'END' => 2,

        'WAITING_PAY_STRING' => '待付款',
        'WAITING_SERVICE_STRING' => '待服务',
        'END_STRING' => '已完成',
    ),

    'BOOKING_TYPE' =>array(
        'SHOP' => 1,
        'HOME' => 2,

        'SHOP_STRING' => '自行前往希卫康取型评估中心',
        'HOME_STRING' => '矫形师上门服务',
    ),

    'MESSAGEBOX_STATUS' =>array(
        'WAITING_REPLY' => -1,
        'END' => 1,

        'WAITING_REPLY_STRING' => '待通知',
        'END_STRING' => '已通知',
    ),
);


